new Promise((resolve, reject) => {
  // 这里一开始就resolve,一旦变了，就不会再执行了
  for (let i = 0; i < 10; i++) {
    resolve(i);
  }
}).then((data) => {
  console.log(data);
});


Promise.resolve(new Promise((resolve, reject) => resolve('1111'))).then(data => {
  console.log(data);
})